package org.artifact.core;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.Console;
import org.yaml.snakeyaml.Yaml;

import java.io.FileInputStream;
import java.util.Map;

/**
 * @author : SandKing
 * @CreateDate : 2020/3/25 11:05
 * @Description ：Please describe this document
 */
public class YmlDemo {
    public static void main(String[] args) {
        Yaml yaml = new Yaml();
        Map result= (Map) yaml.load(FileUtil.getInputStream("default.yml"));
        Console.log(result);
    }
}
